package life.kenny.community.dto;

import lombok.Data;

/**
 * @author Jay
 * @date 2022/2/9 5:23 下午
 */
@Data
public class HotTagDTO implements Comparable{

    private String name;
    private Integer priority;

    @Override
    public int compareTo(Object o) {

        return this.getPriority() - ((HotTagDTO) o).getPriority();
    }
}
